package com.cy.sqlSession;

import com.cy.pojo.Configuration;
import com.cy.pojo.MappedStatement;

import java.beans.IntrospectionException;
import java.lang.reflect.InvocationTargetException;
import java.sql.SQLException;
import java.util.List;

public interface Executor {

    <E> List<E> query(Configuration configuration, MappedStatement mappedStatement, Object... params) throws SQLException, NoSuchFieldException, IllegalAccessException, InstantiationException, InvocationTargetException;

    <T> int update(Configuration configuration, MappedStatement mappedStatement, Object... object) throws SQLException, NoSuchFieldException, IllegalAccessException;
}
